﻿using Zzt.ExpertsCore.Domain.Models.Enums;

namespace Zzt.ExpertsCore.Domain.Entities
{
    public class User : BaseRecordEntity
    {
        /// <summary>
        /// 用户名
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        public string Password { get; set; }
        /// <summary>
        /// 手机号码
        /// </summary>
        public string ContactNumber { get; set; }
        /// <summary>
        /// 单位id
        /// </summary>
        public int? CompanyId { get; set; }
        public virtual Company Company { get; set; }
        /// <summary>
        /// 角色类型
        /// </summary>
        public RoleCategory RoleType { get; set; }
        public bool Enabled { get; set; }
    }
}
